﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace BCL.Tool.Windows.WinAPI
{
    public class Win32
    {


        /// <summary>
        /// 控制窗体  
        /// SW_HIDE = 0
        /// SW_SHOWNORMAL = 1
        /// SW_SHOWMINIMIZED = 2
        /// SW_SHOWMAXIMIZED = 3
        /// SW_MAXIMIZE = 3
        /// SW_SHOWNOACTIVATE = 4
        /// SW_SHOW = 5
        /// SW_MINIMIZE = 6
        /// SW_SHOWMINNOACTIVE = 7
        /// SW_SHOWNA = 8
        /// SW_RESTORE = 9
        /// </summary>
        /// <param name="hwnd">窗体句柄</param>
        /// <param name="nCmdShow">cmd</param>
        /// <returns></returns>
        [DllImport("user32.dll", EntryPoint = "ShowWindow", CharSet = CharSet.Auto)]
        public static extern int ShowWindow(IntPtr hwnd, int nCmdShow);

        [DllImport("user32.dll", EntryPoint = "FlashWindow", CharSet = CharSet.Auto)]
        public static extern int FlashWindow(IntPtr hwnd, Boolean bInvert);
        
    }

}
